package com.aaa.bookproject.controller;


import com.aaa.bookproject.service.ITMenuService;
import com.aaa.bookproject.util.ResultData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LvYongQi
 * @since 2021-05-09
 */
@RestController
@RequestMapping("/t-menu")
public class TMenuController {

    @Resource
    private ResultData resultData;
    @Resource
    private ITMenuService menuService;

    @GetMapping("getAllMenu")
    public ResultData getAllMenu(){
        resultData = menuService.getAllMenu();
        return resultData;
    }
}

